package view.screen;

import java.awt.AWTException;
import java.awt.Dimension;
import java.awt.MenuItem;
import java.awt.PopupMenu;
import java.awt.SystemTray;
import java.awt.Toolkit;
import java.awt.TrayIcon;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import view.images.ImageFactory;

public class DlgGooBar extends javax.swing.JDialog {

    ImageFactory im = ImageFactory.getInstance();
    private static DlgGooBar instance = null;
    private int opc;
    private boolean hidden = false;
    DlgSettings settings = null;
    private boolean effect = true;
    private boolean autoHide = false;
    private int effectSpeed = 1;
    private int dlgLocation = 3;
    private int autoHideTime;
    Toolkit theKit = this.getToolkit();
    Dimension wndSize = theKit.getScreenSize();
    long autoHideStart = 0;
    long autoHideEnd;

    public boolean isAutoHide() {
        return autoHide;
    }

    public void setAutoHide(boolean autoHide) {
        this.autoHide = autoHide;
    }

    public int getAutoHideTime() {
        return autoHideTime;
    }

    public void setAutoHideTime(int autoHideTime) {
        this.autoHideTime = autoHideTime;
    }

    public boolean isHidden() {
        return hidden;
    }

    public void setHidden(boolean hidden) {
        this.hidden = hidden;
    }

    public int getDlgLocation() {
        return dlgLocation;
    }

    public void setDlgLocation(int dlgLocation) {
        this.dlgLocation = dlgLocation;
    }

    public boolean isEffect() {
        return effect;
    }

    public void setEffect(boolean effect) {
        this.effect = effect;
    }

    public int getEffectSpeed() {
        return effectSpeed;
    }

    public void setEffectSpeed(int effectSpeed) {
        this.effectSpeed = effectSpeed;
    }

    public static DlgGooBar getInstance() {
        if (instance != null) {
            return instance;
        } else {
            return instance = new DlgGooBar(null, false);
        }
    }

    /** Creates new form DlgGoogle */
    @SuppressWarnings("static-access")
    private DlgGooBar(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        this.setUndecorated(true);
        initComponents();
        setSize(new Dimension(230, 55));
        setLocationRelativeTo(null);
        posicionar();
        setTitle("Google");

        jLabel1.setIcon(im.getImageIconXY("glogo.jpg", jLabel1.getWidth(), jLabel1.getHeight()));
        setIconImage(im.getImageFull("gicon.png").getImage());
        jButton1.setIcon(im.getImageIconXY("search128.png", 15, 15));
        jButton2.setIcon(im.getImageIconXY("minimize.png", 18, 18));
        jButton3.setIcon(im.getImageIconXY("gmail.jpg", 16, 12));
        jButton2.setToolTipText("Hide");
        jButton3.setToolTipText("Gmail");
        jComboBox1.setToolTipText("Choose the search source");
        settings = settings.getInstance(this);
    }

    private void posicionar() {
        setLocation(wndSize.width, wndSize.height - getHeight() - 30);
    }

    public void hideDlg() {
        int x = 0;
        int y = 0;
        switch (dlgLocation) {
            case 0:
                x = 0;
                y = 0;
                setLocation(x, y);

                if (effect) {
                    for (int i = 0; i < 230; i++) {
                        setLocation(x - i, y);
                        try {
                            Thread.sleep(effectSpeed);
                        } catch (InterruptedException ex) {
                            Logger.getLogger(DlgGooBar.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }
                } else {
                    setLocation(-230, y);
                }
                break;
            case 1:
                x = wndSize.width-230;
                y = 0;
                setLocation(x, y);

                if (effect) {
                    for (int i = 0; i < 230; i++) {
                        setLocation(x + i, y);
                        try {
                            Thread.sleep(effectSpeed);
                        } catch (InterruptedException ex) {
                            Logger.getLogger(DlgGooBar.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }
                } else {
                    setLocation(wndSize.width, y);
                }
                break;
            case 2:
                x = 0;
                y = wndSize.height - getHeight() - 30;
                setLocation(x, y);
                if (effect) {
                    for (int i = 0; i < 230; i++) {
                        setLocation(x - i, y);
                        try {
                            Thread.sleep(effectSpeed);
                        } catch (InterruptedException ex) {
                            Logger.getLogger(DlgGooBar.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }
                } else {
                    setLocation(-230, y);
                }
                break;
            case 3:
                x = wndSize.width - 230;
                y = wndSize.height - getHeight() - 30;
                setLocation(x, y);
                if (effect) {
                    for (int i = 0; i < 230; i++) {
                        setLocation(x + i, y);
                        try {
                            Thread.sleep(effectSpeed);
                        } catch (InterruptedException ex) {
                            Logger.getLogger(DlgGooBar.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }
                } else {
                    setLocation(wndSize.width, y);
                }
                break;
            default:
                break;
        }
        
        setVisible(false);
        hidden = true;
    }

    public void showDlg() {
        setVisible(true);
        int x = 0;
        int y = 0;
        switch (dlgLocation) {
            case 0:
                x = -230;
                y = 0;
                setLocation(x, y);

                if (effect) {
                    for (int i = 0; i < 230; i++) {
                        setLocation(x + i, y);
                        try {
                            Thread.sleep(effectSpeed);
                        } catch (InterruptedException ex) {
                            Logger.getLogger(DlgGooBar.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }
                } else {
                    setLocation(0, y);
                }
                break;
            case 1:
                x = wndSize.width;
                y = 0;
                setLocation(x, y);

                if (effect) {
                    for (int i = 0; i < 230; i++) {
                        setLocation(x - i, y);
                        try {
                            Thread.sleep(effectSpeed);
                        } catch (InterruptedException ex) {
                            Logger.getLogger(DlgGooBar.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }
                } else {
                    setLocation(wndSize.width - 230, y);
                }
                break;
            case 2:
                x = -230;
                y = wndSize.height - getHeight() - 30;
                setLocation(0 - 230, y);
                if (effect) {
                    for (int i = 0; i < 230; i++) {
                        setLocation(x + i, y);
                        try {
                            Thread.sleep(effectSpeed);
                        } catch (InterruptedException ex) {
                            Logger.getLogger(DlgGooBar.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }
                } else {
                    setLocation(0, y);
                }
                break;
            case 3:
                x = wndSize.width;
                y = wndSize.height - getHeight() - 30;
                setLocation(x, y);
                if (effect) {
                    for (int i = 0; i < 230; i++) {
                        setLocation(x - i, y);
                        try {
                            Thread.sleep(effectSpeed);
                        } catch (InterruptedException ex) {
                            Logger.getLogger(DlgGooBar.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }
                } else {
                    setLocation(x - 230, y);
                }
                break;
            default:
                break;
        }
        hidden = false;
        autoHideStart = System.currentTimeMillis();
    }

    public void gerarTrayIcon() {
        PopupMenu popupMenu = new PopupMenu();
        TrayIcon trayIcon = new TrayIcon(im.getImageIconXY("gicon.png", 16, 16).getImage());
        trayIcon.setImageAutoSize(true);
        trayIcon.setToolTip("GooBar");
        SystemTray tray = SystemTray.getSystemTray();

        MenuItem sairItem = new MenuItem("Exit");
        MenuItem settingsItem = new MenuItem("Settings");
        MenuItem abrirItem = new MenuItem("Hide");

        //Acao Abrir
        abrirItem.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                if (hidden) {
                    if (settings != null) {
                        if (settings.isVisible()) {
                            settings.hideDlg();
                        }
                        showDlg();
                        hidden = false;
                        jTextField1.grabFocus();
                    } else {
                        showDlg();
                        hidden = false;
                        jTextField1.grabFocus();
                    }
                } else {
                    hideDlg();
                    hidden = true;
                }
            }
        });

        //Acao settings
        settingsItem.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                if (!hidden) {
                    hideDlg();
                }
                if (settings == null) {
                    settings = DlgSettings.getInstance(getInstance());
                }
                settings.showDlg();
            }
        });

        //Acao sair
        sairItem.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                hideDlg();
                System.exit(0);
            }
        });

        //Acao tray
        trayIcon.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                if (settings != null && hidden) {
                    settings.hideDlg();
                    showDlg();
                    hidden = false;
                    jTextField1.grabFocus();
                } else {
                    if (!isShowing()) {
                        showDlg();
                        hidden = false;
                        jTextField1.grabFocus();
                    } else {
                        hideDlg();
                        hidden = true;
                        jTextField1.grabFocus();
                    }
                }
            }
        });

        trayIcon.setPopupMenu(popupMenu);
        try {
            tray.add(trayIcon);
        } catch (AWTException ex) {
            Logger.getLogger(DlgGooBar.class.getName()).log(Level.SEVERE, null, ex);
        }
        popupMenu.add(abrirItem);
        popupMenu.addSeparator();
        popupMenu.add(settingsItem);
        popupMenu.addSeparator();
        popupMenu.add(sairItem);
        showDlg();

        while (true) {
            if (hidden) {
                abrirItem.setLabel("Show");
                if (settings != null) {
                    if (settings.isVisible()) {
                        settingsItem.setEnabled(false);
                    } else {
                        settingsItem.setEnabled(true);
                    }
                }
            } else {
                abrirItem.setLabel("Hide");
                settingsItem.setEnabled(true);
            }
            try {
                Thread.sleep(100);
                if (!hidden && autoHide) {
                    autoHideEnd = System.currentTimeMillis();
                    if ((autoHideEnd - autoHideStart) > autoHideTime) {
                        hideDlg();
                    }
                }
            } catch (InterruptedException ex) {
                Logger.getLogger(DlgGooBar.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void abrir(String[] urls) throws IOException {


        String criteria = "";
        String query = "";

        for (int i = 0; i < urls.length; i++) {
            if (i < urls.length - 1) {
                criteria += urls[i] + "+";
            } else {
                criteria += urls[i];
            }
        }

        switch (opc) {
            case 0:
                query = "http://www.google.com.br/search?q=" + criteria;
                break;
            case 1:
                query = "http://www.youtube.com/results?search_query=" + criteria;
                http://
                break;
            case 2:
                query = "http://www.bing.com/search?q=" + criteria;
                break;
            case 3:
                try {
                    if (criteria.contains("www.")) {
                        query = criteria;
                    } else {
                        JOptionPane.showMessageDialog(null, "URL Inválida! Use www.", "ERRO", JOptionPane.ERROR_MESSAGE);
                        query = "exit";
                    }
                } catch (Exception e) {
                    JOptionPane.showMessageDialog(null, "URL Inválida!", "ERRO", JOptionPane.ERROR_MESSAGE);
                    query = "exit";
                }
        }
        if (!query.equals("exit")) {
            Runtime rt = Runtime.getRuntime();
            System.out.println("" + query);
            String[] cmd = new String[4];
            cmd[0] = "cmd.exe";
            cmd[1] = "/C";
            cmd[2] = "start";
            cmd[3] = query;
            rt.exec(cmd);
        } else {
            showDlg();
            jTextField1.grabFocus();
        }
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel2 = new javax.swing.JPanel();
        jTextField1 = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setAlwaysOnTop(true);
        setResizable(false);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowOpened(java.awt.event.WindowEvent evt) {
                formWindowOpened(evt);
            }
        });
        addWindowStateListener(new java.awt.event.WindowStateListener() {
            public void windowStateChanged(java.awt.event.WindowEvent evt) {
                formWindowStateChanged(evt);
            }
        });
        addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                formKeyPressed(evt);
            }
        });

        jPanel2.setBackground(new java.awt.Color(255, 255, 255));
        jPanel2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED));
        jPanel2.setPreferredSize(new java.awt.Dimension(200, 55));

        jTextField1.setFont(new java.awt.Font("Dialog", 1, 12));
        jTextField1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField1ActionPerformed(evt);
            }
        });
        jTextField1.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jTextField1KeyPressed(evt);
            }
        });

        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Google", "You Tube", "Bing", "URL" }));
        jComboBox1.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox1ItemStateChanged(evt);
            }
        });

        jButton1.setBackground(new java.awt.Color(255, 255, 255));
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setBackground(new java.awt.Color(255, 255, 255));
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jButton3.setBackground(new java.awt.Color(255, 255, 255));
        jButton3.setPreferredSize(new java.awt.Dimension(30, 9));
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jComboBox1, 0, 89, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 198, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(0, 0, 0))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 235, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 56, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void pesquisar() {
        try {
            hideDlg();
            String[] palavras = null;
            palavras = jTextField1.getText().split(" ");
            abrir(palavras);
        } catch (IOException ex) {
            Logger.getLogger(DlgGooBar.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        pesquisar();
}//GEN-LAST:event_jButton1ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        hideDlg();
        hidden = true;
    }//GEN-LAST:event_jButton2ActionPerformed

    private void formWindowStateChanged(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowStateChanged
    }//GEN-LAST:event_formWindowStateChanged

    private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
        jTextField1.grabFocus();
    }//GEN-LAST:event_formWindowOpened

    private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed
        pesquisar();
    }//GEN-LAST:event_jTextField1ActionPerformed

    private void jComboBox1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox1ItemStateChanged
        if (jComboBox1.getSelectedIndex() == 0) {
            jLabel1.setIcon(im.getImageIconXY("glogo.jpg", jLabel1.getWidth(), jLabel1.getHeight()));
            jButton3.setIcon(im.getImageIconXY("gmail.jpg", 16, 12));
            jButton3.setToolTipText("Gmail");
            jButton1.setIcon(im.getImageIconXY("search128.png", 15, 15));
            opc = 0;
        } else {
            if (jComboBox1.getSelectedIndex() == 1) {
                jLabel1.setIcon(im.getImageIconXY("youtube2.jpg", jLabel1.getWidth(), jLabel1.getHeight()));
                jButton3.setIcon(im.getImageIconXY("youtube.jpg", 15, 15));
                jButton3.setToolTipText("YouTube");
                jButton1.setIcon(im.getImageIconXY("search128.png", 15, 15));
                opc = 1;
            } else {
                if (jComboBox1.getSelectedIndex() == 2) {
                    jLabel1.setIcon(im.getImageIconXY("bing.png", jLabel1.getWidth(), jLabel1.getHeight() + 15));
                    jButton3.setIcon(im.getImageIconXY("minibing.png", 15, 15));
                    jButton3.setToolTipText("Bing");
                    jButton1.setIcon(im.getImageIconXY("search128.png", 15, 15));
                    opc = 2;
                } else {
                    jLabel1.setIcon(im.getImageIconXY("http.jpg", jLabel1.getHeight() * 3, jLabel1.getHeight() + 4));
                    jButton3.setIcon(im.getImageIconXY("twitter.png", 20, 20));
                    jButton3.setToolTipText("Twitter");
                    jButton1.setIcon(im.getImageIconXY("rightarrow.png", 15, 15));

                    opc = 3;
                }

            }
        }
        repaint();
        jLabel1.repaint();
        jTextField1.grabFocus();
    }//GEN-LAST:event_jComboBox1ItemStateChanged

    @SuppressWarnings("static-access")
    private void jTextField1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField1KeyPressed
        if (evt.getKeyCode() == evt.VK_ESCAPE) {
            hideDlg();
        }
    }//GEN-LAST:event_jTextField1KeyPressed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        Runtime rt = Runtime.getRuntime();
        String email = "";
        if (opc == 0) {
            email = "http://www.gmail.com";
        } else {
            if (opc == 1) {
                email = "http://www.youtube.com";
            } else {
                if (opc == 2) {
                    email = "http://www.hotmail.com";
                } else {
                    email = "http://www.twitter.com";
                }
            }
        }

        System.out.println("" + email);
        String[] cmd = new String[4];
        cmd[0] = "cmd.exe";
        cmd[1] = "/C";
        cmd[2] = "start";
        cmd[3] = email;
        try {
            rt.exec(cmd);
        } catch (IOException ex) {
            Logger.getLogger(DlgGooBar.class.getName()).log(Level.SEVERE, null, ex);
        }

    }//GEN-LAST:event_jButton3ActionPerformed

    @SuppressWarnings("static-access")
    private void formKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_formKeyPressed
    }//GEN-LAST:event_formKeyPressed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JTextField jTextField1;
    // End of variables declaration//GEN-END:variables
}
